package snackfind.sjoerd.job;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class Info extends  TabActivity  {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.info);  
        
        TabHost tabHost = getTabHost();  // The activity TabHost
        TabHost.TabSpec spec;  // Resusable TabSpec for each tab
        Intent intent;  // Reusable Intent for each tab

        // Create an Intent to launch an Activity for the tab (to be reused)
        intent = new Intent().setClass(this, Gegevens.class);

        // Initialize a TabSpec for each tab and add it to the TabHost
        spec = tabHost.newTabSpec("gegevens").setIndicator("Gegevens")
                	.setContent(intent);
        		tabHost.addTab(spec);


        // Do the same for the other tabs
        intent = new Intent().setClass(this, Menukaart.class);
        spec = tabHost.newTabSpec("menukaart").setIndicator("Menukaart")
                      .setContent(intent);
        tabHost.addTab(spec);

        intent = new Intent().setClass(this, Review.class);
        spec = tabHost.newTabSpec("review").setIndicator("Review")
                      .setContent(intent);
        tabHost.addTab(spec);

        tabHost.setCurrentTab(0);
    }

}
